
package com.sap.document.sap.soap.functions.mc_style;

/**
 * Please modify this class to meet your needs
 * This class is not complete
 */

import com.slliver.baoxinsap.interceptor.MyAuthenticator;

import java.io.File;
import java.net.*;
import javax.xml.namespace.QName;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;

/**
 * This class was generated by Apache CXF 3.2.9
 * 2024-05-16T09:04:50.689+08:00
 * Generated source version: 3.2.9
 *
 */
public final class ZBXTESTCUSTOMQUERY_BXTEST031Soap12_Client {

    private static final QName SERVICE_NAME = new QName("urn:sap-com:document:sap:soap:functions:mc-style", "BXTEST03");

    private ZBXTESTCUSTOMQUERY_BXTEST031Soap12_Client() {
    }

    public static void main(String args[]) throws java.lang.Exception {
        URL wsdlURL = BXTEST03.WSDL_LOCATION;
        if (args.length > 0 && args[0] != null && !"".equals(args[0])) {
            File wsdlFile = new File(args[0]);
            try {
                if (wsdlFile.exists()) {
                    wsdlURL = wsdlFile.toURI().toURL();
                } else {
                    wsdlURL = new URL(args[0]);
                }
            } catch (MalformedURLException e) {
                e.printStackTrace();
            }
        }

        // 添加认证
        Authenticator.setDefault(new MyAuthenticator("IF_ALL","123456"));
        // 添加Cookie
        CookieHandler.setDefault(new CookieManager(null, CookiePolicy.ACCEPT_ALL));

        BXTEST03 ss = new BXTEST03(wsdlURL, SERVICE_NAME);
        ZBXTESTCUSTOMQUERY port = ss.getBXTEST031Soap12();

        {
        System.out.println("Invoking zbxTextQuery...");
        java.lang.String _zbxTextQuery_itCustRefNo = "";
        java.lang.String _zbxTextQuery_itFlag = "";
        java.lang.String _zbxTextQuery_itOrdCustCode = "";
        java.lang.String _zbxTextQuery_itOrdCustName = "";
        java.lang.String _zbxTextQuery_itReferDate = "";
        java.lang.String _zbxTextQuery_itSoNo = "";
        java.lang.String _zbxTextQuery_itValidDateStart = "";
        java.lang.String _zbxTextQuery__return = port.zbxTextQuery(_zbxTextQuery_itCustRefNo, _zbxTextQuery_itFlag, _zbxTextQuery_itOrdCustCode, _zbxTextQuery_itOrdCustName, _zbxTextQuery_itReferDate, _zbxTextQuery_itSoNo, _zbxTextQuery_itValidDateStart);
        System.out.println("zbxTextQuery.result=" + _zbxTextQuery__return);


        }

        System.exit(0);
    }

}
